package Tree;

public class Node {
	
	private ComparableValue value;
	private Node leftNode;
	private Node rightNode;
	private Node parent;
	
	protected Node(ComparableValue value) {
		this.value = value;
		leftNode = null;
		rightNode = null;
		parent = null;
	}

	protected ComparableValue getValue() {
		return value;
	}

	protected Node getLeftNode() {
		return leftNode;
	}

	protected void setLeftNode(Node leftNode) {
		this.leftNode = leftNode;
	}

	protected Node getRightNode() {
		return rightNode;
	}

	protected void setRightNode(Node rightNode) {
		this.rightNode = rightNode;
	}

	protected Node getParent() {
		return parent;
	}

	protected void setParent(Node rightNode) {
		this.parent = rightNode;
	}
}